package com.liuzhilong.infrastructure.basic.command.simple;

import lombok.Setter;
import lombok.experimental.Accessors;

@Setter
@Accessors(chain = true)
public class Invoker {
    private Command command;

    public void invoke(){
        System.out.println(getClass().getName()+" 我执行command的execute方法。");
        command.execute();
    }


}
